// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using Elastic.Transport.Products.Elasticsearch;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning;

public sealed partial class PutJobResponse : ElasticsearchResponse
{
	[JsonInclude, JsonPropertyName("allow_lazy_open")]
	public bool AllowLazyOpen { get; init; }
	[JsonInclude, JsonPropertyName("analysis_config")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigRead AnalysisConfig { get; init; }
	[JsonInclude, JsonPropertyName("analysis_limits")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits AnalysisLimits { get; init; }
	[JsonInclude, JsonPropertyName("background_persist_interval")]
	public Elastic.Clients.Elasticsearch.Serverless.Duration? BackgroundPersistInterval { get; init; }
	[JsonInclude, JsonPropertyName("create_time")]
	public DateTimeOffset CreateTime { get; init; }
	[JsonInclude, JsonPropertyName("custom_settings")]
	public object? CustomSettings { get; init; }
	[JsonInclude, JsonPropertyName("daily_model_snapshot_retention_after_days")]
	public long DailyModelSnapshotRetentionAfterDays { get; init; }
	[JsonInclude, JsonPropertyName("data_description")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription DataDescription { get; init; }
	[JsonInclude, JsonPropertyName("datafeed_config")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Datafeed? DatafeedConfig { get; init; }
	[JsonInclude, JsonPropertyName("description")]
	public string? Description { get; init; }
	[JsonInclude, JsonPropertyName("groups")]
	public IReadOnlyCollection<string>? Groups { get; init; }
	[JsonInclude, JsonPropertyName("job_id")]
	public string JobId { get; init; }
	[JsonInclude, JsonPropertyName("job_type")]
	public string JobType { get; init; }
	[JsonInclude, JsonPropertyName("job_version")]
	public string JobVersion { get; init; }
	[JsonInclude, JsonPropertyName("model_plot_config")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotConfig { get; init; }
	[JsonInclude, JsonPropertyName("model_snapshot_id")]
	public string? ModelSnapshotId { get; init; }
	[JsonInclude, JsonPropertyName("model_snapshot_retention_days")]
	public long ModelSnapshotRetentionDays { get; init; }
	[JsonInclude, JsonPropertyName("renormalization_window_days")]
	public long? RenormalizationWindowDays { get; init; }
	[JsonInclude, JsonPropertyName("results_index_name")]
	public string ResultsIndexName { get; init; }
	[JsonInclude, JsonPropertyName("results_retention_days")]
	public long? ResultsRetentionDays { get; init; }
}